package eatpoopyoucat;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class EpycMessage {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String message;
    
    @Persistent
    private Key gameID;
    
    public EpycMessage(String message, Key gameID) {
    	this.setMessage(message);
    	this.setGameID(gameID);
    }

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Key getKey() {
		return key;
	}

	public void setGameID(Key gameID) {
		this.gameID = gameID;
	}

	public Key getGameID() {
		return gameID;
	}
    
    
}
